window.addEventListener('load', function () {
    const dom = document.querySelectorAll('.box');
    dom.forEach(el => console.log(el));
});
